import 'package:flutter/material.dart';
import 'package:flutter_tabbar_demo/drawer_page.dart';

void main() {
  runApp(const MainApp());
}

class MainApp extends StatelessWidget {
  const MainApp({super.key});

  @override
  Widget build(BuildContext context) {
    // Android material theme
    return MaterialApp(
      // home: TabBarPage(),
      // home: FisrtRoute(),
      // home: TodoList(
      //   todos: List.generate(
      //     20,
      //     (i) => Todo(
      //         "Todo $i", "A description of what needs to be done for Todo $i."),
      //   ),
      // ),
      // home: NavReturnDataPage(),
      home: DrawerPage(),
    );
    // iOS cupertino theme
    // return CupertinoApp(
    //   title: "Navigation Basics",
    //   home: CupertinoFirstRoute(),
    // );
  }
}

/** GoRouter, a deeplink exercise */
// class MainApp extends StatelessWidget {
//   MainApp({super.key});

//   final router = GoRouter(
//     routes: [
//       GoRoute(
//         path: '/',
//         builder: (_, __) => Scaffold(
//           appBar: AppBar(title: const Text('Home')),
//         ),
//       ),
//       GoRoute(
//         path: 'details',
//         builder: (context, state) => Scaffold(
//           appBar: AppBar(title: const Text('Details Screen')),
//         ),
//       ),
//     ],
//   );

//   @override
//   Widget build(BuildContext context) {
//     return MaterialApp.router(
      
//       routerConfig: router,
//     );
//   }
// }
